<?php
// DB Created by Rich L. a member in service in Northern Delaware.  Please feel free to share this code wherever it may be useful to alcholoics.  Should you have questons please contact me at sobernerd@gmail.com
//header items
$jQuery = true;
$tinyMCE = false;
$jQueryCookie = true;
$hoverIntent = true;
$Jededitable = false;
$sectionSort = false;
$googleAPI = false;
$calendar = true;
require_once ('../../config/include_paths.php');
require_once('config.php');
require_once('functions.php');
$pageTitle = SITE_NAME.' - Administration - Event Calendar'; //must be set after the config.php include and before head.php include
require_once('dbconnect.php');	// database connect script.
session_start();
if ($_SESSION['logged_in'] == 0) {
	require ('security_check.php');
} else {
require_once ('adminhead.php');
?>
<script type='text/javascript'>

	$(document).ready(function() {
	
		var date = new Date();
		var d = date.getDate();
		var m = date.getMonth();
		var y = date.getFullYear();
		
		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			theme: true,
			events: 'events_array.php',
		});	
	});
</script>
<style type='text/css'>
#calendar {
	width: 800px;
	margin: 0;
}
</style>
<body onLoad="checkMenuSettings();">
<div id="wrapper">
  <?php require_once ('adminHeader.php'); ?>
  <div class="clearfloat">&nbsp;</div>
  <div id="sidebar">
    <?php require_once ('adminNav.php'); ?>
  </div>
  <div id="main_content">
    <div id="calendar"></div>
  </div>
</div>
<?php mysql_close($conn); 
}?>
</body>
</html>